package com.artisan.provider.ImportConfig;


import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

@RestController
public interface UserImportConfig {

    /**
     * 获取....
     * @param zgIntegralDto
     * @param page
     * @param limit
     * @return
     */
    @GetMapping(value = "/usre/find/all/asdf/{page}/{limit}")
    List<Object> findAll(@RequestBody(required = false) Object zgIntegralDto, @PathVariable(value = "page", required = false) int page, @PathVariable(value = "limit", required = false) int limit);


    @GetMapping(value = "/goods")
    ModelAndView showGoods();


    //redis 解决超发
    @GetMapping(value = "/goods/seckill")
    void showGoodsSeckill();

    //秒杀活动
    @GetMapping(value = "/seckill")
    Map processSecKill(int psId,String userId);

    //登录业务
    @GetMapping(value = "/login")
    String login(String u, WebRequest request);

    //页面刷新
    @GetMapping(value = "/check")
    String checkUser(WebRequest request);
}
